<?php

namespace Console\Logic;

/**
 * 族谱坐标系字典控制器
 */
class CooDicLogic {

    /**
     * 整体的页面尺寸
     * @var type 
     */
    public $body = array(
        "w" => 1500,
        "h" => 2121
    );

    /**
     * 头部线条
     * @var type 
     */
//    public $headerLine = array(
//        "url" => WEB_PATH . "/ImgTemp/top_line.jpg",
//        "type" => 1, //type=1代表画图形
//        "x" => 0,
//        "y" => 0
//    );

    /**
     * logo的坐标系
     * @var type 
     */
    public $logo = array(
        "type" => 1, //type=1代表画图形
        "x" => 55,
        "y" => 80,
    );

    /**
     * 主对象坐标系
     * @var type 
     */
    public $self = array(
        "x" => 45,
        "y" => 660,
        "w" => 333,
        "h" => 853,
        "url" => WEB_PATH . "/ImgTemp/self_bk.png",
    );

    /**
     * 父母坐标系
     * @var type 
     */
    public $parent = array(
        "x" => 373,
        "w" => 358,
        "h" => 723,
        "url" => WEB_PATH . "/ImgTemp/parent_bk.png",
    );

    /**
     * 祖父母坐标系
     * @var type 
     */
    public $grand = array(
        "x" => 727,
        "w" => 358,
        "h" => 353,
        "url" => WEB_PATH . "/ImgTemp/grand_bk.png",
    );

    /**
     * 曾祖父母坐标系
     * @var type 
     */
    public $gParents = array(
        "x" => 1081,
        "w" => 358,
        "h" => 168,
        "url" => WEB_PATH . "/ImgTemp/gParents_bk.png",
    );

    /**
     * footer线条
     * @var type 
     */
    public $footerLine = array(
        "type" => 1, //type=1代表画图形
        "url" => WEB_PATH . "/ImgTemp/foot_lint.jpg",
        "x" => 0,
        "y" => 1990
    );

    /**
     * 底部文字
     * @var type 
     */
    public $footerText = array(
        "type" => 2, //type=2代表写字
        "x" => 50,
        "y" => 2060,
        "fontSize" => 20
    );

}
